package com.springboot.study.third;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @program: study
 * @description: 启动主入口
 * @author: chengqj
 * @create: 2019-07-09 09:52
 **/
@SpringBootApplication
public class ThirdMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext sa =
                SpringApplication.run(ThirdMain.class, args);
        ImportSelectorService is = sa.getBean(ImportSelectorService.class);
        is.getService();
        ImportBeanDefinitionRegistrarService regservice =
                sa.getBean(ImportBeanDefinitionRegistrarService.class);
        regservice.getService();
    }
}
